package com.wpw.spring4.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

import com.wpw.spring4.test.property.PropertyBean;

@Configuration
@ComponentScan(basePackageClasses = {PropertyBean.class})
@PropertySource("classpath:property.properties")
public class propertyConfig {

	@Bean
	public PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
		return new PropertySourcesPlaceholderConfigurer();
	}
}
